package zh.stu.StrategyPattern.General;

/**
 * @Author：KoVaVo
 * @Version：1.0.0
 * @Description：配置上下文的环境
 */
public class Context {
    IStrategy iStrategy;

    //构造方法
    public Context(IStrategy iStrategy) {
        this.iStrategy = iStrategy;
    }

    //
    public void algorithm(){
        this.iStrategy.algorithm();
    }
}
